package com.conn;

import java.net.*;
import java.io.*;

public abstract class ClientState {
    String stateName;
    public ClientState(String name) {
        stateName = name;
    }
    public boolean register(Socket cli, String info) throws UnsupportedOperationException {
        System.out.println("current state["+stateName+"]: register operator forbid!");
        throw new UnsupportedOperationException();
    }
    public boolean unregister(Socket cli, String info) throws UnsupportedOperationException {
        System.out.println("current state["+stateName+"]: unregister operator forbid!");
        throw new UnsupportedOperationException();
    }
    public boolean login(Socket cli, String info) throws UnsupportedOperationException {
        System.out.println("current state["+stateName+"]: login operator forbid!");
        throw new UnsupportedOperationException();
    }
    public boolean logout(Socket cli, String info) throws UnsupportedOperationException {
        System.out.println("current state["+stateName+"]: logout operator forbid!");
        throw new UnsupportedOperationException();
    }
    public boolean sendRequest(Socket cli, String info) throws UnsupportedOperationException {
        System.out.println("current state["+stateName+"]: sendRequest operator forbid!");
        throw new UnsupportedOperationException();
    }
}
